<div class="uk-layui-form">
    <form class="layui-form uk-form" action="/admin/callcenter/router/update.html" data-toggle="ajax-form" data-inner="#callCenterContent">
    	<input type="hidden" name="hostid" value="${pbxHost.id!''}">
    	<input type="hidden" name="id" value="${routerRules.id!''}">
        <div class="layui-form-item">
            <label class="layui-form-label">名称：</label>
            <div class="layui-input-inline">
                <input type="text" name="name" value="${routerRules.name!''}" required lay-verify="required" placeholder="请输入路由规则名称" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
            	<font color="red">*</font> 
            	路由规则名称
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型：</label>
            <div class="layui-input-inline">
            	<select name="type">
            		<option>请选择类型</option>
            		<option value="default" <#if routerRules.type?? && routerRules.type == 'default'>selected="selected"</#if>>基本规则</option>
            		<option value="ivr" <#if routerRules.type?? && routerRules.type == 'ivr'>selected="selected"</#if>>语音IVR</option>
            		<option value="callcenter" <#if routerRules.type?? && routerRules.type == 'callcenter'>selected="selected"</#if>>队列</option>
            		<option value="smart" <#if routerRules.type?? && routerRules.type == 'smart'>selected="selected"</#if>>智能IVR</option>
            		<option value="in" <#if routerRules.type?? && routerRules.type == 'in'>selected="selected"</#if>>呼入</option>
            		<option value="out" <#if routerRules.type?? && routerRules.type == 'out'>selected="selected"</#if>>呼出</option>
            	</select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">序号：</label>
            <div class="layui-input-inline">
            	<select name="routerinx">
            		<#list 1..100 as inx>
            		<option value="${inx}" <#if routerRules.routerinx == inx>selected="selected"</#if>>${inx}</option>
            		</#list>
            	</select>
            </div>
        </div>
        <div class="layui-form-button">
            <div class="layui-button-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render();
});
</script>